<%@ page import="com.jkt.rms.commons.includes.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.jkt.rms.business.*"%>

<%@ include file="/WEB-INF/jsp/include.jsp" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="/spring"%>

<html>
<head>
<title><fmt:message key="lbl.title.createRole" /></title>
</head>
 <body><center>
 	<br>
	<div id="headerbar"><fmt:message key="lbl.title.createRole" /></div>
		
	
		<div id="errorFieldSet" >
		  <spring:hasBindErrors name="commandBean">  
			<fieldset> 
 				<legend >Errors</legend> 
			<c:if test="${not empty errors.errorCount}">
			<c:forEach var="err" items="${errors.allErrors}">  
				<spring:message code="${err.code}" arguments="${err.arguments[0]}"/>  
			</c:forEach>  
			</c:if>
		</fieldset>
		</spring:hasBindErrors>  
		</div>
		
		
	<c:if test="${not empty commandBean.message}">
		<div id="infoFieldSet">
		<fieldset> 
		<legend >Messages</legend> 				
		  <c:out value="${commandBean.message}"/>
		<br />
		</fieldset>
		</div>
	</c:if> 	
 
	
	 
 	
 	<spring:nestedPath path="commandBean">
 	<div id="content">
		<div> 
 	<form:form method="POST" commandName="commandBean">

			<table width = "70%" border = "0" align  ="center" cellpadding="0" cellspacing="0" >
			<tr>
            	<td align='right' colspan="3">&nbsp;</td>
         	 </tr>
		  	<tr>
            	<td align='right' class=header ><label for="textRoleName">Role Name:</label></td>
            	 <td align='left' class=value colspan="2">&nbsp;</td> 
	            <td align='left' class=value colspan="2"> 
	            
	            <form:input   path="roleName" maxlength="50" tabindex="1"   />
 
            	</td>
         	 </tr>
			
          <tr  >
            <td align='right'><label for="textDesc">Role Description:</label></td>
            <td align='left' class=value colspan="2">&nbsp;</td>
            <td align='left' >
            <form:textarea path="roleDesc"  rows="5" cols="40" tabindex="2" title="Enter Role Desc"/> 
            	
            </td>
          </tr>
          <tr>
            <td colspan=4 align=center>
          &nbsp;
            </td>
          </tr>
          <tr >
            <td colspan="4" align="center">
              <input class="value" type='submit' name='button' value='Save'  tabindex="4" title="" >
            </td>
          </tr>
      </table>
		 </form:form> 
		</div>
		<p>

		</p>
		<br>			
	</div>
</spring:nestedPath>	
	
<%@ include file="footer.jsp" %>
</center></body>
</html>
